package logic

import (
	"SteedCensorShield/pkg/utils"
	"strings"
)

// CheckSensitiveWord 检查文本中是否包含敏感词
func CheckSensitiveWord(text string) (bool, error) {
	for _, word := range utils.GetSensitiveWords() {
		if strings.Contains(text, word) {
			return true, nil
		}
	}
	return false, nil
}
